< previous page page_288 next page >

Page 288
(table continued from previous page)
PropertyDescription
DataSourceThe name of the data control used when an update is made to the base table.
DataFieldThe name of the field in the SQL of the RecordSource property. This RecordSource property is the one located in the data control whose name you specified in the DataSource property.
BoundColumnThis field should match the field youre using in the DataField property, except this is the field that comes from the data control specified in the RowSource property.
MatchEntryThis field can be set to perform basic matching or extended drill-downtype matching when youre searching for values in the DataCombo control.

Lets now add this control to the Employee Information form.
EXERCISE
Add the DataCombo Box
1. Click once on the State combo box.
2. Press the Delete key to remove this combo box from the form.
3. Add a DataCombo control in the location where the old combo box was located.
4. Add another data control to the Employee Information form.
5. Set the Name property to datStates.
6. Set the Caption property to States.
7. Using the property pages like you did previously for the datEmployees data control, set the connection properties to the same database.
8. Set the Command Text (SQL) field on the RecordSource tab to SELECT * FROM tblStates.
9. Set the Visible property to False. This way, the user cant move this data control. This data control will only be used to load the combo box.
10. Click once on the DataCombo control to give it focus.
11. Set the Name property to datcboStates.

 
< previous page page_288 next page >

If you like this book, buy it!